﻿/* 
    Jolt Environment
    Copyright (C) 2010 Jolt Environment Team

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JoltEnvironment.Sql
{
    /// <summary>
    /// Represents a 'structured query language' database storage.
    /// </summary>
    public class SqlDatabase
    {
        #region Properties
        /// <summary>
        /// Gets the database's name.
        /// </summary>
        public string Name { get; private set; }
        /// <summary>
        /// Gets the database's minimum thread pool size.
        /// </summary>
        public uint MinPoolSize { get; private set; }
        /// <summary>
        /// Gets the database's maximum thread pool size.
        /// </summary>
        public uint MaxPoolSize { get; private set; }
        #endregion Properties

        #region Constructors
        /// <summary>
        /// Constructs a database with the specified database's name.
        /// </summary>
        /// <param name="name">The database's name.</param>
        /// <param name="minPool">The minimum thread pool size.</param>
        /// <param name="maxPool">The maximum thread pool size.</param>
        public SqlDatabase(string name, uint minPool, uint maxPool)
        {
            this.Name = name;
            this.MinPoolSize = minPool;
            this.MaxPoolSize = maxPool;
        }
        #endregion Constructors
    }
}
